package arithmetic.tree;

public class Node {
    int value;   //节点数据
    Node left; //左子节点的引用
    Node right; //右子节点的引用
    boolean isDelete;//表示节点是否被删除

    public Node(int data){
        this.value = data;
    }
    //打印节点内容
    public void display(){
        System.out.println(value);
    }

    @Override
    public String toString() {
        return "Node{" +
                "value=" + value +
                ", isDelete=" + isDelete +
                '}';
    }
}
